package com.demo.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.consumer.service.DemoServiceCon;

@RequestMapping("user")
@RestController
public class UserController {


    private DemoServiceCon demoServiceCon;

    @Autowired
    public UserController(DemoServiceCon demoServiceCon) {
        this.demoServiceCon = demoServiceCon;
    }

    @RequestMapping("test")
    public String test() {
        return "OK:返回信息=" + demoServiceCon.ConService();
    }

    @RequestMapping("index")
    public String index() {
        return "你好啊";
    }

}
